<?php
/* SVN FILE: $Id: default.ctp 2893 2010-09-02 09:42:54Z sakthivel_135at10 $ */
/**
 *
 * PHP versions 4 and 5
 *
 * CakePHP(tm) :  Rapid Development Framework (http://www.cakephp.org)
 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @filesource
 * @copyright     Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
 * @link          http://www.cakefoundation.org/projects/info/cakephp CakePHP(tm) Project
 * @package       cake
 * @subpackage    cake.cake.console.libs.templates.skel.views.layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @version       $Revision: 7805 $
 * @modifiedby    $LastChangedBy: AD7six $
 * @lastmodified  $Date: 2008-10-30 23:00:26 +0530 (Thu, 30 Oct 2008) $
 * @license       http://www.opensource.org/licenses/mit-license.php The MIT License
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" >
<head>
	<?php echo $this->Html->charset(), "\n";?>
	<?php if($this->request->params['controller'] == 'projects' && $this->request->params['action'] == 'view'): ?>
		<title><?php echo $this->Html->cText($title_for_layout, false);?> | <?php echo Configure::read('site.name');?></title>
	<?php else:?>
		<title><?php echo Configure::read('site.name');?> | <?php echo $this->Html->cText($title_for_layout, false);?></title>
	<?php endif; ?>
	<?php
		echo $this->Html->meta('icon'), "\n";
		echo $this->Html->meta('keywords', $meta_for_layout['keywords']), "\n";
		echo $this->Html->meta('description', $meta_for_layout['description']), "\n";
		echo $this->Html->css('default.cache', null, array('inline' => true));
		$js_inline = "document.documentElement.className = 'js';";
		$js_inline .= 'var cfg = ' . $this->Javascript->object($js_vars_for_layout) . ';';
		$js_inline .= "(function() {";
		$js_inline .= "var js = document.createElement('script'); js.type = 'text/javascript'; js.async = true;";
		if (!$_jsPath = Configure::read('cdn.js')) {
			$_jsPath = Router::url('/', true);
		}
		$js_inline .= "js.src = \"" . $_jsPath . 'js/default.cache.js' . "\";";
		$js_inline .= "var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(js, s);";
		$js_inline .= "})();";
		echo $this->Javascript->codeBlock($js_inline, array('inline' => true));
		// For other than Facebook (facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)), wrap it in comments for XHTML validation...
		if (strpos(env('HTTP_USER_AGENT'), 'facebookexternalhit')===false):
			echo '<!--', "\n";
		endif;
	?>
<meta content="<?php echo Configure::read('facebook.app_id');?>" property="og:app_id" />
<meta content="<?php echo Configure::read('facebook.app_id');?>" property="fb:app_id" />
<?php if(!empty($meta_for_layout['project_name'])):?>
<meta property="og:site_name" content="<?php echo Configure::read('site.name'); ?>"/>
<meta property="og:title" content="<?php echo $meta_for_layout['project_name'];?>"/>
<?php endif;?>
<?php if(!empty($meta_for_layout['project_image'])):?>
<meta property="og:image" content="<?php echo $meta_for_layout['project_image'];?>"/>
<?php else:?>
<meta property="og:image" content="<?php echo Router::url(array(
'controller' => 'img',
'action' => 'logo.png',
'admin' => false
) , true);?>"/>
<?php endif;?>
	<?php
	if (strpos(env('HTTP_USER_AGENT'), 'facebookexternalhit')===false):
		echo '-->', "\n";
	endif;
	?>
<?php
	$this->Html->meta('rss', array(
		'controller' => 'projects',
		'action' => 'index',
		'ext' => 'rss'
	) , array(
		'title' => __l('Subscribe to RSS')
	) , false);
?>
<?php echo $this->element('site_tracker', array('config' => 'sec')); ?>
<!--[if IE 6]>
		<style>
		* {
			behavior: url(iepngfix.htc)
		}
		</style>
	<![endif]-->
</head>
<body>

			<?php if ($this->Session->check('Message.error') || $this->Session->check('Message.success') || $this->Session->check('Message.flash')): ?>
				<div class="js-flash-message flash-message-block">
					<?php
						if ($this->Session->check('Message.error')):
							echo $this->Session->flash('error');
						endif;
						if ($this->Session->check('Message.success')):
							echo $this->Session->flash('success');
						endif;
						if ($this->Session->check('Message.flash')):
							echo $this->Session->flash();
						endif;
					?>
				</div>
			<?php endif; ?>
<?php if($this->Auth->sessionValid() && $this->Auth->user('user_type_id') == ConstUserTypes::Admin): ?>
			<div class="clearfix admin-wrapper">
    			<h3 class="admin-site-logo grid_left">
					<?php echo $this->Html->link((Configure::read('site.name').' '.'<span>Admin</span>'), array('controller' => 'users', 'action' => 'stats', 'admin' => true), array('escape' => false, 'title' => (Configure::read('site.name').' '.'Admin')));?>
    			</h3>
                <p class="logged-info grid_left"><?php echo __l('You are logged in as Admin'); ?></p>
    			<ul class="clearfix admin-menu grid_right">
                    <li><?php echo $this->Html->link(__l('My Account'), array('controller' => 'user_profiles', 'action' => 'edit', $this->Auth->user('id')), array('title' => __l('My Account')));?></li>
					<li class="logout"><?php echo $this->Html->link(__l('Logout'), array('controller' => 'users', 'action' => 'logout'), array('title' => __l('Logout')));?></li>
				</ul>
			</div>
 <?php endif; ?>
<div id="<?php echo $this->Html->getUniquePageId();?>" class="content">
<div class="js-morecities1 top-slider1 hide">
	<div class="container_24 cities-index-block">
		<?php echo $this->element('city-index', array('type'=>'home', 'config' => 'sec'));?>
	</div>
</div>
 <div id="header" class="clearfix">
    <div class="container_24 clearfix">
      <h1 class="grid_4 alpha"><?php echo $this->Html->link(Configure::read('site.name'),  Router::url('/', true) ,array('title'=>Configure::read('site.name')));?></h1>
      <div class="grid_20 omega clearfix">
      		<div class="clearfix">
			<div class="grid_right">
			<div class="view-cities grid_4">
				<?php echo $this->Html->link(__l('Visit More Cities'), '#', array('title' => __l('Visit More Cities'), 'class' => "more-cities js-toggle-city-show {'container':'js-morecities1'}")); ?>
			</div>

	    	<?php
				$languages = $this->Html->getLanguage();
				if(Configure::read('user.is_allow_user_to_switch_language') && !empty($languages)) :
					echo $this->Form->create('Language', array('action' => 'change_language', 'class' => 'subscription grid_5 alpha omega'));
					echo $this->Form->input('language_id', array('class' => 'js-autosubmit', 'options' => $languages, 'value' => isset($_COOKIE['CakeCookie']['user_language']) ?  $_COOKIE['CakeCookie']['user_language'] : Configure::read('site.language')));
					echo $this->Form->input('r', array('type' => 'hidden', 'value' => $this->request->url));
			?>
					<div class="hide">
						<?php echo $this->Form->submit('Submit');  ?>
					</div>
			<?php
					echo $this->Form->end();
				endif;
			?>


            <?php echo $this->Form->create('Project', array('type' => 'get', 'class' => 'search grid_left', 'id' => 'ProjectSearchForm', 'url' => array('controller' => 'projects', 'action' => 'index','admin'=>false))); ?>
		<div class="js-overlabel text-wrapper grid_5">
			<?php echo $this->Form->input('q', array('class' => '', 'label' => __l('search projects'))); ?>
		</div>
		<?php echo $this->Form->submit(__l('GO')); ?>
		<?php echo $this->Form->end(); ?>

		</div>
		</div>
        <div class="clearfix">

          <ul class="menu-list grid_13 alpha omega clearfix">
            <?php $class = ($this->request->params['controller'] == 'projects' && $this->request->params['action'] == 'discover' ||  ($this->request->params['action'] == 'index' && ((!empty($this->request->params['named']['type']) and $this->request->params['named']['type'] == 'discover') || !empty($this->request->params['named']['filter']) || (!empty($this->request->params['named']['city']) && !Configure::read('Project.is_enable_idea')) || !empty($this->request->params['named']['category'])))) ? ' class="active"' : null; ?>
			<li <?php echo $class;?>><?php echo $this->Html->link(__l('Browse Projects'), array('controller' => 'projects', 'action' => 'discover', 'admin' => false), array('title' => __l('Browse Projects')));?></li>
			<?php $class = ($this->request->params['controller'] == 'projects' && $this->request->params['action'] == 'add') ? ' class="active"' : null; ?>
			<?php if(Configure::read('Project.is_enable_idea')): ?>
				<li <?php echo $class;?>><?php echo $this->Html->link(__l('Post Your Ideas'), array('controller' => 'projects', 'action' => 'add', 'admin' => false), array('title' => __l('Post Your Ideas')));?></li>
			<?php else: ?>
				<li <?php echo $class;?>><?php echo $this->Html->link(__l('Start Your Project'), array('controller' => 'projects', 'action' => 'add', 'admin' => false), array('title' => __l('Start Your Project')));?></li>
			<?php endif; ?>
            <li><?php echo $this->Html->link(__l('How It Works'), array('controller' => 'pages', 'action' => 'view', 'how-it-works', 'admin' => false), array('title' => __l('How It Works')));?></li>
          </ul>

        	<?php if ($this->Auth->sessionValid()): ?>
	<div class="user-login-info grid_right">
<div class="user-block">
<div class="user-name-left">
	<div class="user-name-right">
		<?php
			if($this->Auth->user('user_type_id') == ConstUserTypes::User):
				$reg_type_class = 'normal';
				if ($this->Auth->user('is_gmail_register')):
					$reg_type_class = 'open-id-gmail-thumb';
				elseif($this->Auth->user('is_yahoo_register')):
					$reg_type_class = 'open-id-yahoo-thumb';
				elseif ($this->Auth->user('is_openid_register')):
					$reg_type_class = 'open-id-thumb';
				elseif ($this->Auth->user('is_facebook_register')):
					$reg_type_class = 'facebook';
				elseif($this->Auth->user('is_twitter_register')):
					$reg_type_class='twitter';
				endif;
		?>
				<span class="<?php echo $reg_type_class; ?>">
					<?php echo $this->Html->getUserAvatar($this->Auth->user('id'), 'micro_thumb'); ?>
				</span>
		<?php endif; ?>
		<?php
			echo $this->Html->link($this->Auth->user('username'), array('controller' => 'users', 'action' => 'view', $this->Auth->user('username'), 'admin' => false), array('class'=>'name','title' => $this->Auth->user('username')));
		?>
</div>
</div>
</div>
<div class="submenu">
<div class=" user-tl">
					<div class=" user-tr">
						<div class="user-t"></div>
					</div>
				</div>
				<div class="available-balance-outer">
		<?php if ($this->Auth->sessionValid() and !empty($is_wallet_enabled)): ?>
       <div class="available-balance">
        	<?php
				$balance = $this->Html->getCurrUserInfo($this->Auth->user('id'));
				echo __l('Balance:') . ' ' . Configure::read('site.currency') . $this->Html->cCurrency($balance['User']['available_wallet_amount']);
			?>
    	</div>
    	<?php endif; ?>
    	</div>


<div class="shad-bg-lft-in">
					<div class="shad-bg-rgt-in">
			<div class="shad-bg clearfix">
			<div class="clearfix">
					</div>
	  	<div class="shad-bg-inner clearfix">
                <div class="grid_5">
                       <h2><?php echo __l('Settings'); ?></h2>
                        <ul class="submenu-list clearfix">
           				<?php $class = ($this->request->params['controller'] == 'activities' && $this->request->params['action'] == 'index' && empty($this->request->params['named']['type'])) ? ' class="active"' : null; ?>
        				<li <?php echo $class;?>><?php echo $this->Html->link(__l('Activity'), array('controller' => 'activities', 'action' => 'index', 'admin' => false), array('title' => __l('Activity')));?></li>

        					<?php
        						$message_count = $this->Html->getUserUnReadMessages($this->Auth->user('id'));
        						$message_count = !empty($message_count) ? ' ('.$message_count.')' : '';
        					?>
        					
        					

                            <li><?php echo $this->Html->link(__l('Settings'), array('controller' => 'user_profiles', 'action' => 'edit', 'admin' => false), array('title' => __l('Settings')));?></li>

                            <?php if(!$this->Auth->user('fb_user_id') && !$this->Auth->user('twitter_user_id') && !$this->Auth->user('is_openid_register') && !$this->Auth->user('is_yahoo_register') && !$this->Auth->user('is_gmail_register')):?>
                        	<li><?php echo $this->Html->link(__l('Change Password'), array('controller' => 'users', 'action' => 'change_password'), array('title' => __l('Change password')));?></li>
                        	<?php endif;?>

        	           <li>	<?php echo $this->Html->link(__l('Notifications'), array('controller' => 'user_permission_preferences', 'action' => 'edit', 'admin' => false), array('title' => __l('Notifications')));?></li>
					   <?php if (!empty($is_wallet_enabled)) { ?>
                         <li><?php echo $this->Html->link(__l('Add amount to wallet'), array('controller' => 'users', 'action' => 'add_to_wallet', 'admin' => false), array('title' => __l('Add amount to wallet')));?></li>
                         <?php } ?>
                         <?php if (Configure::read('user.is_user_can_with_draw_amount') && ($current_user['User']['is_affiliate_user'] || !empty($is_wallet_enabled))): ?>
                          <li><?php echo $this->Html->link(__l('Money Transfer Accounts'), array('controller' => 'money_transfer_accounts', 'action' => 'index'), array('title' => __l('Money Transfer Accounts')));?></li>
                          <li><?php echo $this->Html->link(__l('Withdraw Fund Request'), array('controller' => 'user_cash_withdrawals', 'action' => 'index', 'admin' => false), array('title' => __l('Withdraw Fund Request')));?></li>
                    	 <?php endif; ?>
                        </ul>
                </div>


                <div class="grid_left">
                <?php if(Configure::read('affiliate.is_enabled')):?>
                <h2><?php echo __l('Affiliates'); ?></h2>
                    <ul class="submenu-list clearfix">
                        <li><?php echo $this->Html->link(__l('Affiliate'), array('controller' => 'affiliates', 'action' => 'index'), array('title' => __l('Affiliates'))); ?></li>
                       
                          <li><?php echo $this->Html->link(__l('Affiliate Cash Withdrawals'), array('controller' => 'affiliate_cash_withdrawals', 'action' => 'index'), array('title' => __l('Affiliate Cash Withdrawals')));?></li>
                        
                    </ul>
                <?PHP endif; ?>
                    <h2><?php echo __l('My Account'); ?></h2>
                    <ul class="submenu-list clearfix">
                        <li><?php echo $this->Html->link(__l('Dashboard'), array('controller' => 'users', 'action' => 'dashboard'), array('title' => __l('Dashboard'))); ?></li>
                        <?php $class = ($this->request->params['controller'] == 'messages') ? ' class="active"' : null; ?>
        					<li <?php echo $class;?>><?php echo $this->Html->link(__l('Inbox').$message_count, array('controller' => 'messages', 'action' => 'index', 'admin' => false), array('title' => __l('Inbox')));?></li>
        					<li>	<?php echo $this->Html->link(__l('Transactions'), array('controller' => 'transactions', 'action' => 'index', 'admin' => false), array('title' => __l('Transactions')));?></li>


    					<li><?php echo $this->Html->link(__l('Logout'), array('controller' => 'users', 'action' => 'logout'), array('title' => __l('Logout')));?></li>
                    </ul>
                </div>
                </div>



 </div>
 </div>
 </div>
<div class="l-curve-bot-in ">
					<div class="r-curve-bot-in ">
						<div class="bot-bg-in "></div>
					</div>
				</div>


</div>
	</div>
	<?php endif; ?>
          	<?php if(!$this->Auth->sessionValid()):?>
        <div class="clearfix open-id-block grid_7 grid_right alpha omega">
          <ul class="open-id-list grid_right grid_3 list clearfix">
			<li class="face-book">
			<?php if(Configure::read('facebook.is_enabled_facebook_connect')):  ?>
				<?php echo $this->Html->link(__l('Sign in with Facebook'), array('controller' => 'users', 'action' => 'login','type'=>'facebook', 'admin' => false), array('title' => __l('Sign in with Facebook'), 'escape' => false)); ?>
			<?php endif; ?>
			</li>
			<?php if(Configure::read('twitter.is_enabled_twitter_connect')):?>
				<li class="twiiter"><?php echo $this->Html->link(__l('Sign in with Twitter'), array('controller' => 'users', 'action' => 'login',  'type'=> 'twitter', 'admin'=>false), array('class' => 'Twitter', 'title' => __l('Sign in with Twitter')));?></li>
			<?php endif;?>
			<?php if(Configure::read('user.is_enable_openid')):?>
			    <li class="gmail"><?php echo $this->Html->link(__l('Sign in with Gmail'), array('controller' => 'users', 'action' => 'login', 'type'=>'gmail', 'admin' => false), array('title' => __l('Sign in with Gmail')));?></li>
				<li class="yahoo"><?php echo $this->Html->link(__l('Sign in with Yahoo'), array('controller' => 'users', 'action' => 'login', 'type'=>'yahoo', 'admin' => false), array('title' => __l('Sign in with Yahoo')));?></li>
                <li class="open-id"><?php 	echo $this->Html->link(__l('Sign in with Open ID'), array('controller' => 'users', 'action' => 'login','type'=>'openid', 'admin' => false), array('class'=>'js-ajax-colorbox-openid {source:"js-dialog-body-open-login"}','title' => __l('Sign in with Open ID')));?></li>
			<?php endif;?>
          </ul>

		  		         <?php if (!$this->Auth->sessionValid()) { ?>
          <ul class="grid_4 global-list clearfix">

					<?php $class = ($this->request->params['controller'] == 'pages' && $this->request->params['action'] == 'view' && $this->request->params['pass'][0] == 'faq') ? ' class="active"' : null; ?>
					<li <?php echo $class;?>><?php echo $this->Html->link(__l('FAQ'), array('controller' => 'pages', 'action' => 'view', 'faq', 'admin' => false), array('title' => __l('FAQ')));?></li>
				<?php } ?>

				<?php if(!$this->Auth->sessionValid()):?>
					<?php $class = ($this->request->params['controller'] == 'users' && $this->request->params['action'] == 'register') ? ' class="active"' : null; ?>
					<li <?php echo $class;?>><?php echo $this->Html->link(__l('Signup'), array('controller' => 'users', 'action' => 'register', 'admin' => false), array('title' => __l('Signup')));?></li>
					<?php $class = ($this->request->params['controller'] == 'users' && $this->request->params['action'] == 'login') ? ' class="active"' : null; ?>
					<li <?php echo $class;?>><?php echo $this->Html->link(__l('Login'), array('controller' => 'users', 'action' => 'login'), array('title' => __l('Login')));?></li>
  		<?php else: ?>

				<?php endif;?>
             <?php if(!$this->Auth->sessionValid()):?>
				</ul>
				<?php endif; ?>
         </div>
          	<?php endif; ?>



        </div>
            </div>
    </div>
  </div>

	<div id="main" class="clearfix">
	<?php  if(!empty($this->request->params['named']['type']) && $this->request->params['controller']=='projects' && $this->request->params['action']=='index' && $this->request->params['named']['type']=='home'): ?>
        <div class="banner-block clearfix ">
      <div class="banner home-banner container_24">
        <span class="banner-shadow"><?php echo __l('bannershadow');?></span>
          <p class="start-left start-project"><?php echo $this->Html->link(__l('Start Projects'), array('controller' => 'projects', 'action' => 'add', 'admin' => false), array('title' => __l('Start Projects')));?>
          </p>

        <div class="clearfix">
          <h2><span><?php echo __l('A New way to');?></span><?php echo __l('Fund &amp; Follow Creativity');?></h2>
        </div>
        <div class="banner-inner clearfix prefix_2"> <span class="funder grid_6 "><?php echo __l('Funders...');?></span> <span class="to grid_8 alpha"><?php echo __l('From or To');?></span> <span class="entre grid_6"><?php echo __l('Entrepreneurs...');?></span> </div>
      </div>

		</div>
	<?php endif; ?>
		<?php
			$class_name = "";
			if (($this->request->params['controller']=='projects' && $this->request->params['action']=='view') || ($this->request->params['controller']=='users' && $this->request->params['action']=='view')|| ($this->request->params['controller']=='users' && $this->request->params['action']=='dashboard') || ($this->request->params['controller']=='user_paypal_connections' && $this->request->params['action']=='index') || ($this->request->params['controller']=='user_permission_preferences' && $this->request->params['action']=='edit') || ($this->request->params['controller']=='user_profiles' && $this->request->params['action']=='edit') || ($this->request->params['controller']=='users' && $this->request->params['action']=='change_password') || ($this->request->params['controller']=='activities' && $this->request->params['action']=='index') || ($this->request->params['controller']=='transactions' && $this->request->params['action']=='index') || ($this->request->params['controller']=='users' && $this->request->params['action']=='add_to_wallet') || ($this->request->params['controller']=='user_cash_withdrawals' && $this->request->params['action']=='index')) {
				$class_name = '';
			} else {
				$class_name = 'container_24 main-content';
			}
		?>
		<div class="main-inner clearfix <?php echo $class_name; ?>">
			<?php if(!empty($this->request->params['named']['type']) && $this->request->params['controller']=='projects' && $this->request->params['action']=='index' && $this->request->params['named']['type']=='home'): ?>
	     <div class="title-left clearfix">
          <div class="title-right clearfix">
                  <h2><?php echo __l('A Marketplace of our project opportunities');?></h2>
          </div>
        </div>
        <?php endif; ?>
			<?php echo $content_for_layout;?>
		</div>
		
	</div>

	  <div id="footer">
    <div class="container_24 footer-top clearfix">
      <div class="grid_7 alpha clearfix">
		<?php echo $this->element('category-index', array('config' => 'sec','type' => 'home'));?>
      </div>
      <div class="grid_7 alpha">
        <h6><?php echo __l('Keep in touch'); ?></h6>
        <p><?php echo __l('We are a social company, and like to get to know you and keep you up to date with latest features, blogs, ideas in the spotlight and many more.');?></p>
        <ul class="footer-follow clearfix">
        <?php
			$facebook_url = '#';
			$twitter_url = '#';
			if(Configure::read('facebook.site_facebook_url')):
				$facebook_url = Configure::read('facebook.site_facebook_url');
			endif;
			if(Configure::read('twitter.site_twitter_url')):
				$twitter_url = Configure::read('twitter.site_twitter_url');
			endif;
		?>
          <li class="twitter"><a href="<?php echo $twitter_url; ?>" title="twitter" target="_blank">Twitter</a></li>
          <li class="facebook"><a href="<?php echo $facebook_url; ?>" title="Facebook" target="_blank">Facebook</a></li>
        </ul>
      </div>
          	<?php if(Configure::read('Project.is_show_site_stats_in_front_end')) { ?>
				<div class="clearfix grid_10 alpha omega total-amount-block">
					<dl class="amount-list grid_right">
						<dt><?php echo __l('Funded Amount'); ?></dt>
							<dd class="round-3"><?php echo  Configure::read('site.currency').$this->Html->cCurrency($this->Html->getProjectCollectedAmount(ConstProjectStatus::FundingClosed)); ?></dd>
					</dl>
					<dl class="amount-list grid_right">
						<dt><?php echo __l('Successful Projects'); ?></dt>
							<dd class="round-3"><?php echo  $this->Html->cInt($this->Html->getSuccessProject()); ?></dd>
					</dl>
				</div>
	  <?php } ?>
    </div>

    <div class="footer-inner clearfix container_24">
      <ul class="footer-list list clearfix">
                <li><?php echo $this->Html->link(__l('About'), array('controller' => 'pages', 'action' => 'view', 'about', 'admin' => false), array('title' => __l('About')));?></li>
				<li><?php echo $this->Html->link(__l('Contact Us'), array('controller' => 'contacts', 'action' => 'add','admin' => false), array('title' => __l('Contact Us')));?></li>
				<li><?php echo $this->Html->link(__l('Term and Conditions'), array('controller' => 'pages', 'action' => 'view', 'term-and-conditions', 'admin' => false), array('title' => __l('Term and Conditions')));?></li>
				<li><?php echo $this->Html->link(__l('How it works'), array('controller' => 'pages', 'action' => 'view', 'how-it-works', 'admin' => false), array('title' => __l('How it works')));?></li>
				<li><?php echo $this->Html->link(__l('Benefits'), array('controller' => 'pages', 'action' => 'view', 'benefits', 'admin' => false), array('title' => __l('Benefits')));?></li>
				<?php if(Configure::read('Project.is_enable_rss_feed')):?>
				<li><?php echo $this->Html->link('RSS', array('controller' => 'projects', 'action' => 'index', 'ext' => 'rss') , array('target' => '_blank','title' => __l('Subscribe to RSS')));?></li>
				<?php endif; ?>
				<li><?php echo $this->Html->link(__l('FAQ'), array('controller' => 'pages', 'action' => 'view', 'faq', 'admin' => false), array('title' => __l('FAQ')));?></li>
				<!--<?php //if (Configure::read('site.embed_code')) { ?>
					<li><?php //echo $this->Html->link(__l('Video'),array('controller' => 'pages', 'action' => 'display', 'video', 'admin' => false), array('title' => __l('Video'),'class'=>'js-video-embed'));?></li>
				<?php //} ?>-->

					<?php if(Configure::read('affiliate.is_enabled')):?>
								<?php $class = ($this->request->params['controller'] == 'affiliates') ? ' class="active"' : null; ?>
								<li <?php echo $class;?>><?php echo $this->Html->link(__l('Affiliates'), array('controller' => 'affiliates', 'action' => 'index'),array('title' => __l('Affiliates'))); ?></li>
					<?php endif; ?>
      </ul>
      <div id="agriya" class="clearfix copywrite-info">
        <p class="grid_left clearfix"><?php echo $this->Html->link(Configure::read('site.name'), Router::Url('/',true), array('title' => Configure::read('site.name'), 'class' => 'grid_left',  'escape' => false));?>&nbsp;&copy;&nbsp;<?php echo date('Y');?>. <?php echo __l('All rights reserved');?>.</p>
    </div>
    </div>
  </div>
</div>
	<?php echo $this->element('sql_dump'); ?>
</body>
</html>
